Skip to content

Conversation

@tobilg
Copy link

@tobilg tobilg commented Nov 8, 2025

This PR adds structured JSON profiling output for HTTPFS statistics, complementing the existing text-based profiling.

This is in preparation of another PR on DuckDB itself that will add comprehensive NDJSON logging and profiling support eventually. I will link the DuckDB PR once it's ready @carlopi. Thanks!

Changes

  • Added WriteProfilingInformationToJSON() method to HTTPState class
  • Exports HTTP metrics as structured JSON: total_bytes_received, total_bytes_sent, head_count, get_count, put_count, post_count, delete_count
  • Uses DuckDB's yyjson library for JSON construction

Forward Compatibility

The method is implemented without override for forward compatibility. When DuckDB adds WriteProfilingInformationToJSON() to ClientContextState, this implementation will automatically override it. Adding override at that time is recommended for compile-time safety.

@carlopi
Copy link
Collaborator

carlopi commented Nov 15, 2025

Hi @tobilg, thanks for the PR, just a heads up that it will take a bit longer to get a proper review in, but we'll be back to this.

@tobilg
Copy link
Author

tobilg commented Nov 15, 2025

@carlopi yeah, no worries. I‘ll try to split my large PR to the main repo first. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants